﻿<%@ Page Title="管理员列表" Language="C#" MasterPageFile="~/Areas/Manage/Views/Shared/Master.Master" Inherits="System.Web.Mvc.ViewPage<List<EAdmin>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <table class="table">
        <tr>
            <th>
                编 号
            </th>
            <th>
                登录名
            </th>
            <th>
                有效性
            </th>
            <th>
                时 间
            </th>
            <th>
                操 作
            </th>
        </tr>
        <%
            int i = 0;
            foreach (EAdmin admin in Model)
            {
                i++;
        %>
        <tr>
            <td>
                <%=i %>
            </td>
            <td>
                <%=admin.AdminName%>
            </td>
            <td>
                <%=admin.Isvalid ? "√" : "×"%>
            </td>
            <td>
                <%=admin.WriteTime.ToString("yyyy-MM-dd HH:mm:ss")%>
            </td>
            <td>
                <%= Html.ActionLink("修 改", "Edit", "Admin", new { name = admin.AdminName }, null)%>
                <%=Html.Hidden("adminId", admin.AdminId)%>
                <%--<input type="button" name="delete" value="删 除" />--%>
            </td>
        </tr>
        <%
}
        %>
    </table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cssLink" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="jsLink" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cssContent" runat="server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="jsContent" runat="server">
</asp:Content>
